﻿class Solution {
    public int[] shuffle(int[] nums, int n) {
 int[] ret=new int[nums.length];
 for(int i=0,j=n,k=0;i<2*n;i++){
 ret[i]=(i%2==0)?nums[k++]:nums[j++];
 }
 return ret;
    }

}